import type { RouteRecordRaw } from 'vue-router'

function Layout() {
  return import('@/layouts/index.vue')
}

const routes: RouteRecordRaw = {
  path: '/regex-tool',
  component: Layout,
  name: 'regexTool',
  meta: {
    title: '正则工具',
    icon: 'i-ic:twotone-auto-awesome',
  },
  children: [
    {
      path: '/regex-tool/common-regex',
      name: 'regexToolIndex',
      component: () => import('@/views/RegexTool.vue'),
      meta: {
        title: '常用正则',
        menu: true,
        breadcrumb: false,
        icon: 'i-mdi:regex',
        activeMenu: '/regex-tool/common-regex',
      },
    },
  ],
}

export default routes
